INCLUDE_DIRECTORIES(
  ./
  /usr/local/include/opencv
  /usr/include/gtk-2.0 
  /usr/lib/gtk-2.0/include 
  /usr/include/atk-1.0 
  /usr/include/cairo 
  /usr/include/pango-1.0 
  /usr/include/glib-2.0 
  /usr/lib/glib-2.0/include 
  /usr/include/freetype2 
  /usr/include/libpng12 
  )

LINK_DIRECTORIES(
  /usr/local/lib	
  )

ADD_DEFINITIONS(-DDEBUG -ggdb -O0 -Wall -fPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_REENTRANT)

ADD_EXECUTABLE(
  capturar
  main.cpp
  interface.cpp
  callbacks.cpp
  captura.cpp
  other_functions.cpp
  serialport.cpp
  serial.cpp
  support.cpp
  dc_captura.cpp
  frame_header.cpp
  options.cpp
  socket.cpp
  face_detect_vj.cpp
  shutter.cpp
  )
TARGET_LINK_LIBRARIES(
  capturar
  cxcore cv highgui
  raw1394
  gtk-x11-2.0 
  gdk-x11-2.0 
  atk-1.0 
  gdk_pixbuf-2.0 
  m 
  pangocairo-1.0 
  fontconfig 
  Xext 
  Xrender 
  Xinerama 
  Xi 
  Xrandr 
  Xcursor 
  Xfixes 
  pango-1.0 
  cairo 
  X11 
  gobject-2.0 
  gmodule-2.0 
  dl 
  glib-2.0   
)

#ADD_EXECUTABLE(
#  counter
#  counter.cpp  )
#TARGET_LINK_LIBRARIES(  counter)
